<?php
 include("conn.php"); 
 ?>

<style type="text/css">
.error{border: solid 1px #f00!important;}
.font{
padding:10px 10px 10px 0;
vertical-align: middle;
text-align: left;
color: <?php echo $f_color?>;
font-family: <?php echo $f_font?>;
font-size: <?php echo $f_size?>px;
font-weight:<?php echo $f_weight?>;
}
.send{
background:<?php echo $b_bgcolor?>;
color:<?php echo $b_color?>;
width:<?php echo $b_width?>px;
height:<?php echo $b_height?>px;
font-family:<?php echo $b_font?>;
font-size:<?php echo $b_size?>px;
font-weight:<?php echo $b_weight?>;
}
</style>
<script src="plugins/enq/assets/jquery.js"></script>
<script src="plugins/enq/assets/checkform.js"></script>
<script>
  $(document).ready(function(){
    $("#formToCheck").checkform();
  });
</script>


<form action="plugins/enq/mail.php" method="post" class="formToCheck" id="formToCheck" style="background: ;">
<table cellpadding="<?php echo $cellpadding?>" cellspacing="0" bgcolor = <?php if($f_bgcolor_tran == 0) echo $f_bgcolor?>>
<?php
 foreach ( $result1 as &$row) {
?>
  <tr>
<!--  <td style="padding: 0 3px;color:#f00;vertical-align:middle;"><?php if($row->nessary == '1')echo ('*')?> </td>-->
  <td class="font"><?php echo $row->title ?></td>
  <td><<?php if($row->input_type == 'TextArea') echo("textarea"); else echo("input"); ?> name="<?php echo $row->title ?>"
  class = "<?php if($row->nessary == '1') echo('req_1') ?>" style="border: solid 1px <?php echo $text_border; ?>;width: <?php echo $row->width ?>px; height: <?php echo $row->height ?>px;"></<?php if($row->input_type == 'TextArea')echo("textarea");else echo("input"); ?>>
  </td>
  </tr>
<?php 
}
?>
<tr>
  <td colSpan="3" align="right" ><input type="submit" class="send" value="<?php echo $b_text?>" /></td>
</tr>

</form>
